package cn.ac.jaas.isc.vegetable.quartz.task;

import cn.ac.jaas.isc.vegetable.quartz.constants.VegetableQuartzEnum;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * @author 张高昌
 * @date 2022/4/30 16:43
 * @description: 功能描述
 */
@Slf4j
@Component("demo")
public class SpringBeanTaskDemo {

    /**
     * 测试Spring Bean的演示方法
     */
    @SneakyThrows
    public String demoMethod(String para) {
        log.info("测试于:{}，输入参数{}", LocalDateTime.now(), para);
        return VegetableQuartzEnum.JOB_LOG_STATUS_SUCCESS.getType();
    }
}
